<?php
/**
 * Invitation response helper.
 * 
 * @author james
 *
 */
class Zend_View_Helper_ShowInvitationResponse {
	protected $_view;
	
	function setView($view) { 
		$this->_view = $view; 
	}
	
	/**
	 * Show invitation result.
	 * 
	 * @param $invitationResponse invitation response collection
	 */
	function showInvitationResponse($invitationResponse) {
		$result = '';
		foreach ($invitationResponse as $item) {
			$result.="<li>".$this->_view->showUserAndEmail(InvitationResponse::getUser($item))."</li>";
		}
		return $result;
	}
}
?>